<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-Hans-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>布克书店 - 登录</title>

    <link rel="icon" type="image/png" href="image/web-icon.png">
    <link rel="stylesheet" type="text/css" href="css/common/com-a.css">
    <link rel="stylesheet" type="text/css" href="css/common/com-c.css">
    <link rel="stylesheet" type="text/css" href="css/login.css">
</head>

<body>
<div class="main">
    <jsp:include page="common/header2.jsp"/>

    <!-- content 登录部分 -->
    <div class="content">
        <div class="box slogan">
            <img src="image/bg/login.jpg" alt="">
        </div>
        <div class="box login-form my-form">
            <form action="login" method="post">
                <p class="title">用户登录</p>
                <div class="row">
                    <label for="username">用户名：</label>
                    <input type="text" name="username" id="username" placeholder="用户名">
                </div>
                <div class="row">
                    <label for="password">密码：</label>
                    <input type="password" name="password" id="password" placeholder="密码">
                </div>
                <div class="row">
                    <label></label>
                    <input type="submit" value="登录">
                </div>
                <div class="row otherLink">
                    <a href="forget.jsp">忘记密码？</a>
                    <a href="register.jsp">新用户注册&gt;&gt;</a>
                </div>
            </form>
        </div>
    </div>

    <jsp:include page="common/footer2.jsp"/>
</div>
<c:if test="${loginErr != null}">
    <script>
        alert('${loginErr}')
    </script>
</c:if>
</body>

</html>
